home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / include / tlistP.h < prev    next >
C/C++ Source or Header  |  1992-11-08  |  1KB  |  43 lines

  1. /* Copyright (c) 1992 The Geometry Center; University of Minnesota
  2.    1300 South Second Street;  Minneapolis, MN  55454, USA;
  3.    
  4. This file is part of geomview/OOGL. geomview/OOGL is free software;
  5. you can redistribute it and/or modify it only under the terms given in
  6. the file COPYING, which you should have received along with this file.
  7. This and other related software may be obtained via anonymous ftp from
  8. geom.umn.edu; email: software@geom.umn.edu. */
  9.  
  10. /* Authors: Charlie Gunn, Stuart Levy, Tamara Munzner, Mark Phillips */
  11.  
  12. #ifndef TLISTPDEFS
  13. #define TLISTPDEFS
  14.  
  15. #include "tlist.h"
  16. #include "bboxP.h"
  17.  
  18. #define TLISTMAGIC     GeomMagic ('t', 1)
  19.  
  20. /*
  21.  * A Transformation List is a collection of 4x4 transformation matrices.
  22.  * May take as argument another Tlist (or List of TList's);
  23.  * if so, we act as the outer product: all our elements multiplied by
  24.  *  all those in the given tlist.
  25.  */
  26.  
  27. struct Tlist {
  28.     GEOMFIELDS
  29.     int       nelements;
  30.     Transform     *elements;
  31.     Geom     *tlist;        /* More transformations: take product */
  32.     Handle    *tlisthandle;
  33. };
  34.  
  35. extern char *TlistName( void );
  36. extern Tlist *TlistCreate( Tlist *existing, GeomClass *Class, va_list args );
  37. extern Tlist *TlistCopy( Tlist *t);
  38. extern void TlistDelete( Tlist * );
  39. extern Geom *TlistImport( Pool *p );
  40. extern int  TlistExport( Tlist *tl, Pool *p );
  41.  
  42. #endif /*TLISTPDEFS*/
  43.